package com.zelix;

import java.io.File;
import java.io.IOException;
import java.util.Vector;

public class kc
{

    protected File a;
    private static String z;

    public kc(File file)
    {
        a = file;
    }

    public static void a(String s)
        throws IOException
    {
        if(s != null)
        {
            File file = new File(s);
            if(!file.exists() && !file.mkdirs())
                throw new IOException(z + s + "'");
        }
    }

    public Vector a()
    {
        Vector vector = new Vector();
        a(a, vector);
        return vector;
    }

    protected void a(File file, Vector vector) {
        String as[];
        int i;
        int j;
        as = file.list(new lc());
        i = as.length;
        for (j = 0; j < i; j++) {
            File file1 = new File(file, as[j]);
            vector.addElement(file1.getAbsolutePath());
            a(file1, vector);
        }
    }

    private static String z(char[] chs) {
        byte key = 0;
        for (int i = 0; i < chs.length; i++) {
            switch (i % 5) {
                case 0:
                    key =0x38;
                    break;
                case 1:
                    key =40;
                    break;
                case 2:
                    key =102;
                    break;
                case 3:
                    key =33;
                    break;
                case 4:
                    key =119;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static 
    {
        z = z("{G\023M\023V\017\022\001\024JM\007U\022\030L\017S\022[\\\tS\016\030\017".toCharArray());
    }
}